package com.huineta.business.modules.not.controller;

import com.huineta.business.modules.not.param.SysAnnounceUserRequest;
import com.huineta.business.modules.not.service.ISysAnnounceUserService;
import io.swagger.annotations.Api;
import com.huineta.business.common.constant.ControllerConstant;
import com.huineta.business.common.web.base.BaseController;
import com.huineta.business.common.web.domain.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * Author:       Dmm Lee< bclassline@gmail.com >
 * Date:         2022/11/28
 * Description:  用户公告控制器
 */
@Api(tags = {"公告"})
@RestController
@RequestMapping(ControllerConstant.PREFIX_SYS + "announce/user")
public class SysAnnounceUserController extends BaseController {

    @Resource
    private ISysAnnounceUserService sysAnnounceUserService;

    @GetMapping("page")
    public Result page(SysAnnounceUserRequest request){
        return success(sysAnnounceUserService.page(request));
    }

}
